// structrect.c
// gcc structrect.c

#include <stdio.h>
#include <stdlib.h>

struct point {
    int x;
    int y;
};

struct rect {
    struct point p1;
    struct point p2;
};

int main()
{
    struct rect screen = {{5,5},{20,20}};
    
    printf("screen p1( %d , %d )\n", screen.p1.x , screen.p1.y);
    printf("\n");
    printf("screen p2( %d , %d )\n", screen.p2.x , screen.p2.y);
    printf("\n");
    
    printf("\n");
    system("pause");
    return 0;
}
